using EloBuddy.SDK.Menu.Values;
using ExorAIO.Utilities;
using LeagueSharp.SDK;

namespace ExorAIO.Champions.Tristana
{
    /// <summary>
    ///     The menu class.
    /// </summary>
    internal class Menus
    {
        /// <summary>
        ///     Sets the menu.
        /// </summary>
        public static void Initialize()
        {
            /// <summary>
            ///     Sets the menu for the Q.
            /// </summary>
            Vars.QMenu = Vars.Menu.AddSubMenu("使用 Q:");
            {
                Vars.QMenu.Add("logical", new CheckBox("自动", true));
                Vars.QMenu.Add("clear", new CheckBox("清线", true));

            }

            /// <summary>
            ///     Sets the menu for the W.
            /// </summary>
            Vars.WMenu = Vars.Menu.AddSubMenu("使用 W:");
            {
                Vars.WMenu.Add("antigrab", new CheckBox("反-被钩", true));
                Vars.WMenu.Add("gapcloser", new CheckBox("反-突进"));
            }

            /// <summary>
            ///     Sets the menu for the E.
            /// </summary>
            Vars.EMenu = Vars.Menu.AddSubMenu("使用 E:");
            {
                Vars.EMenu.Add("combo", new CheckBox("连招", true));
                Vars.EMenu.Add("harass", new Slider("骚扰 / 如果蓝量 >= %", 50, 0, 101));
                Vars.EMenu.Add("buildings", new Slider("拆建筑 / 如果蓝量 >= %", 50, 0, 101));
                Vars.EMenu.Add("laneclear", new Slider("清线 / 如果蓝量 >= %", 50, 0, 101));
                Vars.EMenu.Add("jungleclear", new Slider("清野 / 如果蓝量 >= %", 50, 0, 101));
                {
                    Vars.WhiteListMenu = Vars.Menu.AddSubMenu("E:目标");
                    {
                        foreach (var target in GameObjects.EnemyHeroes)
                        {
                            Vars.WhiteListMenu.Add(target.ChampionName.ToLower(), new CheckBox($"使用 E 给他: {target.ChampionName}", true));
                        }
                    }
                }
            }

            /// <summary>
            ///     Sets the menu for the R.
            /// </summary>
            Vars.RMenu = Vars.Menu.AddSubMenu("使用 R:");
            {
                Vars.RMenu.Add("killsteal", new CheckBox("抢人头", true));
            }

            /// <summary>
            ///     Sets the drawings menu.
            /// </summary>
            Vars.DrawingsMenu = Vars.Menu.AddSubMenu("线圈");
            {
                Vars.DrawingsMenu.Add("w", new CheckBox("W 范围"));
                Vars.DrawingsMenu.Add("e", new CheckBox("E 范围"));
                Vars.DrawingsMenu.Add("r", new CheckBox("R 范围"));
            }
        }
    }
}